package com.dt.dubai.sys.service;

import com.dt.dubai.sys.entity.SysMenuRoleOperatorEntity;
import com.dt.dubai.sys.service.innate.SysMenuRoleOperatorSerInnateAbsImp;
import com.dt.dubai.sys.service.ser.SysMenuRoleOperatorService;
import org.springframework.stereotype.Service;

@Service
public class SysMenuRoleOperatorServiceImp extends SysMenuRoleOperatorSerInnateAbsImp implements SysMenuRoleOperatorService {

    /*innateServiceStart*/
    @Override
    protected void userSavEntity(SysMenuRoleOperatorEntity inEntity) {

    }

    @Override
    protected void userModEntity(SysMenuRoleOperatorEntity inEntity, SysMenuRoleOperatorEntity upEntity) {
        upEntity.setRoleRecordId(inEntity.getRoleRecordId()); // 角色记录ID
        upEntity.setMenuRecordId(inEntity.getMenuRecordId()); // 菜单记录ID
        upEntity.setMenuOperatorRecordId(inEntity.getMenuOperatorRecordId()); // 菜单操作权限记录ID
        upEntity.setOperationType(inEntity.getOperationType()); // 按钮类型

    }
    /*innateServiceEnd*/
    /*以上内容请误删除或是移动，系统升级使用，static系统升级覆盖用户修改，用户代码请写入下方*/
}
